#include <iostream>

#ifndef _COLORS
#define _COLORS

class Colors
{
	private:
		int v,s,h;
		int vr,sr,hr;
		int nb;
	
	public:
		Colors ():v(0),s(0),h(0),nb(1)
		{
			vr=rand()%256;
			sr=rand()%256;
			hr=rand()%180;
		}
		Colors (int vb,int sb,int hb):v(vb),s(sb),h(hb),nb(1)
		{
			vr=rand()%256;
			sr=rand()%256;
			hr=rand()%180;
		}
		~Colors(){}
		bool comparaison(int,int,int,int,bool);
		bool comparaison(Colors,int,bool);
		int getV() const;
		int getS() const;
		int getH() const;
		void setV(int vb);
		void setS(int sb);
		void setH(int hb);
		int getVR() const;
		int getSR() const;
		int getHR() const;
		void setVR(int vb);
		void setSR(int sb);
		void setHR(int hb);
		void setColors(Colors);
		void moyenne(int vb,int sb,int hb);
		void moyenne(Colors c);
};
#endif
